import request from '@/request'

export const fetchDeviceList = data =>
  request({
    url: '/api/device/index_list',
    data
  })

export const fetchAlarmsList = data =>
  request({
    url: '/api/sos_log/lists',
    data
  })

export const postAlarms = data =>
  request({
    url: '/api/sos_log/add',
    data
  })
